cmake_minimum_required(VERSION 3.10)

project(MengyuWubi)

# http://www.utf8everywhere.org/
add_definitions(/D_UNICODE=1 /DUNICODE=1)

include_directories(
    
)

add_definitions(
    -DWIN32 
)

# 包含源代码目录
file(GLOB_RECURSE SOURCES_CPP "./*.cpp")
file(GLOB_RECURSE SOURCES_DEF "./*.def")
file(GLOB_RECURSE SOURCES_RC "./*.rc")
file(GLOB_RECURSE SOURCES_CONFIG "./config/*.cpp")

add_library(MengyuWubi SHARED
    ${SOURCES_CPP}
    ${SOURCES_DEF}
    ${SOURCES_RC}
    ${SOURCES_CONFIG}
)

target_link_libraries(${PROJECT_NAME}
    PRIVATE 
    ole32
)